namespace Terra.Core.Common.ErrorCodes.Options;

/// <summary>
/// 错误码配置选项
/// </summary>
public class ErrorCodeOptions
{
    /// <summary>
    /// 是否启用错误码验证
    /// </summary>
    public bool EnableValidation { get; set; } = true;

    /// <summary>
    /// 重复错误码时是否抛出异常
    /// </summary>
    public bool ThrowOnDuplicate { get; set; } = true;

    /// <summary>
    /// 是否自动注册错误码
    /// </summary>
    public bool AutoRegister { get; set; } = true;

    /// <summary>
    /// 要扫描的程序集名称列表
    /// </summary>
    public List<string> ScanAssemblies { get; set; } = new();
}